{% extends "base.html" %}
{% block content %}
            <li class="active"><a href="/view_chart/">查看购物车<font color="#FF0000">{{ count }}</font></a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
           <li><a href="/user_info/">{{user}}</a></li>
           <li><a href="/logout/">退出</a></li>
         </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container theme-showcase" role="main">

      <div class="page-header">
        <div id="navbar" class="navbar-collapse collapse">
        </div><!--/.navbar-collapse -->
      </div>

      <div class="row">
        <div class="col-md-6">
          <form action="/change_password/" method="post" enctype="multipart/form-data">
		  {% csrf_token %}
            <p style="color:red">{{error}}</p> <br>
            旧密码：<input name="oldpassword" type="password" required><br>
            新密码：<input name="newpassword" type="password" required><br>
            确认密码：<input name="checkpassword" type="password" required><br>
            <input type="submit" value="修改">
          </form>
        </div>

      </div>

{% endblock %}
